package com.liu.web.filter;

import lombok.extern.slf4j.Slf4j;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

/**
 * @author LIU
 * @version 1.0
 * @description: TODO
 * @date 2023/6/5 16:41
 */
@Slf4j
public class MyServletContextListener implements ServletContextListener {
    @Override
    public void contextInitialized(ServletContextEvent sce) {
        // tomcat容器初始化
        log.info("MyServletContextListener contextInitialized执行了");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        // tomcat容器销毁
        log.info("MyServletContextListener contextDestroyed执行了");
    }
}
